package com.ioday02test;

import java.io.*;

public class OISTest {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis = new FileInputStream("student.obj");
        ObjectInputStream ois = new ObjectInputStream(fis);
        Object o = ois.readObject();
        Student s = (Student) o;
        System.out.println(s);
        ois.close();
        System.out.println("复制完成");

    }
}
